home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
v9n03.arc
/
INITSYS.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-01-12
|
4KB
|
77 lines
ECHO OFF
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ INITsys will initially create the .LOG files on the CHECK or CHECK-MT ║
ECHO ║ diskette for the current disk. ║
ECHO ╟─────────────────────────────────────────────────────────────────────────╢
ECHO ║ If FASTrun was executed first, directory ))PCITK.TMP will be used to ║
ECHO ║ load all programs and batch files, otherwise they will be loaded from ║
ECHO ║ the CHECK diskette. ║
ECHO ╟─────────────────────────────────────────────────────────────────────────╢
ECHO ║ PCDATA TOOLKIT 1.0 Copyright (C) 1990 Ziff Communications Co. ║
ECHO ║ PC Magazine ■ Wolfgang Stiller ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
IF "%1"=="" goto Help
IF %1==? goto Help
CD %1\
IF NOT EXIST %1DELFILES.BAT GOTO MissingMT
IF "%PATH%"=="\))PCITK.TMP" GOTO Start
IF NOT EXIST %1INITDIR.BAT GOTO MissingADS
IF NOT EXIST %1XALL.COM GOTO MissingADS
IF NOT EXIST %1CHKFILEC.COM GOTO MissingADS
GOTO Start0
:Help
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ Syntax is INITSYS a: ║
ECHO ║ where "a:" is the drive containing a CHECK or CHECK-MT diskette. ║
ECHO ║ The current disk must be the one which is to be checked. ║
ECHO ╟─────────────────────────────────────────────────────────────────────────╢
ECHO ║ INITsys will check all files in every directory on the current disk. ║
ECHO ║ The check information will be written into *.LOG files in corresponding ║
ECHO ║ directories on the CHECK or CHECK-MT diskette. If FASTrun has been ║
ECHO ║ executed, all needed programs will be loaded from ))PCITK.TMP, otherwise║
ECHO ║ all programs and batch files will be loaded from the CHECK diskette. ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
GOTO End
:MissingMT
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ You MUST have a valid CHECK or CHECK-MT diskette in the drive which ║
ECHO ║ you specified with the %1 parameter. The file DELFILES.BAT is missing. ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
GOTO End
:MissingADS
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ You MUST have a valid CHECK or CHECK-MT diskette in the drive which ║
ECHO ║ you specified with the %1 parameter. ║
ECHO ╟─────────────────────────────────────────────────────────────────────────╢
ECHO ║ You are missing INITDIR.BAT, CHKFILEC.COM or XALL.COM. ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
GOTO End
:BadXall
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ Xall has failed. Please check the prior error messages. Most likely ║
ECHO ║ your COMSPEC environment variable does not point to a good COMMAND.COM. ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
GOTO End
: Enter here if we are NOT executing on a "FASTrun" system
:Start0
PATH=%1\
: Enter here if "FASTrun" has set PATH and COMSPEC
:Start
CD \
Xall INITDIR %1
IF ERRORLEVEL 32 GOTO BadXall
ECHO ╔════════════════════════════════════════════════════════════════╗
ECHO ║ * * * Initialization is complete * * * ║
ECHO ╟────────────────────────────────────────────────────────────────╢
ECHO ║ To continue, make sure you have a bootable disk in drive %1. ║
ECHO ╚════════════════════════════════════════════════════════════════╝
CD %1\
IF NOT "%PATH%"=="\))PCITK.TMP" GOTO End
ECHO Now removing copied files from disk and restoring path.
CD \))PCITK.TMP
SET COMSPEC=%1\COMMAND.COM
PATH=%1\
CD %1\
%1DELFILES
:End